const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const app = express();

// 使用静态资源中间件
app.use('/static', express.static(path.join(__dirname, 'public')))

app.get('/home', (req,res)=> {
  res.send('home') 
})
app.listen(3000, () => {
  console.log('start at port 3000');
})